# @Time : 2025-01-06 17:44
# @Author : Fioman 
# @Phone : 13149920693
"""
当班的记录情况,比如运行时间,生产数量之类的
"""
from db_tool.db_config import TableName, TableRegister

tableName: str = TableName.shiftRecords.name
initData = {
    "key": "1",
    "runTime": 0,
    "idleTime": 0,
    "alarmTime": 0,
    "pmTime": 0,
    "prodCount": 0,
    "lastRecordTime": 0,
    "lastShifName": "",  # 上一次是白班还是夜班
}
TableRegister.register_table(tableName, initData)

if __name__ == '__main__':
    from db_tool.db_config import re_init_table

    # 重新创建表结构,或者新增表字段之后,重新初始化表内容,谨慎使用
    re_init_table(tableName, initData)
